package com.ssy.lingxi.settle.accounts.model.vo.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.PositiveOrZero;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 采购方确认账单是否通过VO
 * @author Saske
 * @date 2021/12/2
 * @version 2.0.0
 */
public class ReconciliationRejectConfirmVo implements Serializable {

    private static final long serialVersionUID = -8887960826739570038L;

    /**
     * 对账单ID
     */
    @NotNull(message = "对账单ID要大于0")
    @Positive(message = "对账单ID要大于0")
    private Long reconciliationId;

    /**
     * 是否确认通过：0-否，1-是
     */
    @NotNull(message = "确认通过范围为：0-1")
    @PositiveOrZero(message = "确认通过范围为：0-1")
    private Integer isConfirm;

    @Size(max = 120, message = "对账单不通过的原因最长120个字符，60个汉字")
    private String reason;

    public Long getReconciliationId() {
        return reconciliationId;
    }

    public void setReconciliationId(Long reconciliationId) {
        this.reconciliationId = reconciliationId;
    }

    public Integer getIsConfirm() {
        return isConfirm;
    }

    public void setIsConfirm(Integer isConfirm) {
        this.isConfirm = isConfirm;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
